$(function(){

	//-------------------------------------------11.8
	var objectSouW={};
	var objectFouW={};
	nowSorceW();
	nowFouW();
	var xsflag;
	
 
	function nowFouW()
	{
		var url="getAllInformationPort.do";//渠道地址
    	var data={};
    	data=YuXi.util.getAsynCache(url,"null",function(data){
    		objectFouW=data.object;
    	},function(){});//请求数据
	}
	function nowSorceW()
	{
		var url="getAllInfomationSource.do";//渠道地址
    	var data={};
    	data=YuXi.util.getAsynCache(url,"null",function(data){
    		objectSouW=data.object;
    	},function(){});//请求数据
	}
	var timerSource=setInterval(function(){
		$("#souceMut").select2();
		var len=$("#souceMut option:selected").length;
		if($("#souceMut").attr("flag"))
		{
			clearInterval(timerSource);
		}
		if(len>0)
		{
			xsflag=YuXi.wri.get(objectSouW,1);
			clearInterval(timerSource);
		}

	},500);
	$("body").on("change","#souceMut",function(){
		
		xsflag=YuXi.wri.get(objectSouW,1);

	})
	var timerPort=setInterval(function(){
		$("#fenkMut").select2();
		var len=$("#fenkMut option:selected").length;

		if(len>0)
		{
		
			xsflag=YuXi.wri.get(objectFouW,2);
			clearInterval(timerPort);
		}
		
	},1000);
	$("body").on("change","#fenkMut",function(){
		
		xsflag=YuXi.wri.get(objectFouW,2);

	})
	

	//--------------------------------------------------------11.8
















})